

export function getRequestParameter() {
    const parameterString = window.location.search.split("?");
    if (!parameterString) {
        return {};
    }
    const parameters = parameterString[1].split("&");
    const parameterObj = {};
    for (const item of parameters) {
        const [key, value] = item.split("=");
        parameterObj[key] = decodeURI(value);
    }
    return parameterObj;
}

export default {
    getRequestParameter,
}

